package com.ldp.designpatterns.study.flyweight.impl;

import com.ldp.designpatterns.study.flyweight.flyAbstract.Chess;

/**
 * @ClassName WhiteChess
 * @Description TODO
 * @Author lindipei
 * @Date 2023/10/17 17:00
 */
public class BlackChess extends Chess {
    @Override
    public void play(int x, int y) {
        this.x = x;
        this.y = y;
        System.out.println("○:(" + this.x + "," + this.y + ")");
    }
}